<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>绑定属性</title>
</head>
<body>
<div id="app">
    <input v-bind:value="userName" />
    <input :value="userName" />
    <a :href="url">去DEMO1</a>
    <a :href="'demo1.html?id='+id">跳转DEMO1，并且携带请求参数id的值</a>
</div>

<script src="js/vue.js"></script>
<script>
    var vue = new Vue({
        el: "#app",
        data: {
            userName: "HelloWorld",
            url: "demo1.html",
            id: 1001
        }
    });
</script>
</body>
</html>